package com.a01_2021.thousandstimes.saas.service;

import com.a01_2021.thousandstimes.saas.entity.OpenRecruitment;
import com.a01_2021.thousandstimes.saas.entity.vo.OpenRecruitQuery;
import com.a01_2021.thousandstimes.utils.AjaxResponse;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author FRQ
 * @since 2021-02-22
 */
public interface OpenRecruitmentService extends IService<OpenRecruitment> {
    //查询岗位是否存在
    OpenRecruitment isPosition(OpenRecruitment openRecruitment);
    //实例数据库插入岗位信息
    AjaxResponse insertRecruit(OpenRecruitQuery openRecruitQuery);
    //主数据库插入岗位信息
    AjaxResponse insertOpenRecruitment(OpenRecruitQuery openRecruitQuery);
    //根据岗位状态查询岗位
    AjaxResponse getOpenRecruitment(Integer state);
    //根据实例id招聘岗位
    AjaxResponse getOpenRecruitmentByInstance(Long instanceId);
    //根据HR查询岗位
    AjaxResponse getOpenRecruitmentByHr(String hr);
    //设置主数据库招聘状态
    AjaxResponse setOpenRecruitmentState(Integer id);

}
